package com.jml.future;

//FutureClient  客户端
public class FutureClient {

    public Data request(final String queryStr) {
        final FurureData furureData = new FurureData();
        new Thread(new Runnable() {
            @Override
            public void run() {
                RealData realData = new RealData(queryStr);
                furureData.setRealData(realData);
            }
        }).start();
        return furureData;

    }
}

